
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.java1234.model.animaled,java.util.ArrayList"%> 
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>搜索信息</title>
<style type="text/css">
	html{
	height:100%;
	background-image:url("images/yeji.jpg");
	background-repeat:no-repeat;
	background-attachment:fixed;
	background-position:right top; 

	}
	.form{
	width:400px;
	height:300px;
	margin:0 auto;
	margin-top:300px;
	}.submit{
	margin-top:30px;
	width:100px;
	}
</style>
</head>

<body>
<a href="userfind.jsp">点击此处返回购买界面</a>
	<form class="form"action="/login/buyServlet"method="post">
		
		<br>
		<table border="1">
			<tr><th>宠物种类</th><th>销售数目</th><th>销售总金额</th></tr><input type="submit" value="查找">
			<%
				try{
					ArrayList<animaled> animal1 =(ArrayList<animaled>)request.getAttribute("aList");
					for(animaled animal2:animal1)
					{
						%><tr><th><%=animal2.getType() %></th><th><%=animal2.getCount() %></th><th><%=animal2.getPrice() %></th></tr>
						
						
					<%
					}
				}catch(Exception e){
					
				}
			%>
				
		</table>
	</form>

</body>
</html>